package com.yeeiee.system.domain.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 菜单视图
 * </p>
 *
 * @author chen
 * @since 2025-10-11
 */
@Getter
@Setter
@ToString
@Schema(name = "MenuVo", description = "菜单视图")
public class MenuVo {

    @Schema(description = "主键")
    private Long id;

    @Schema(description = "标题")
    private String title;

    @Schema(description = "访问路径")
    private String accessPath;

    @Schema(description = "图标")
    private String icon;

    @Schema(description = "父级菜单id")
    private Long pid;

    @Schema(description = "是否缓存")
    private Boolean keepAlive;

    @Schema(description = "菜单类型：0-目录，1-菜单")
    private Integer menuType;

    @Schema(description = "菜单排序")
    private Integer sortId;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    @Schema(description = "子菜单列表")
    private List<MenuVo> children;
}